<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class PayServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    protected $defer = true;

    public function register()
    {
        //$this->app->singleton(\App\Contracts\PayContract::class,App\Services\Pay\Pay::class);
        $this->app->bind('pay.ali', \App\Services\Pay\PayAli::class);
        $this->app->bind('pay.wechat', \App\Services\Pay\PayWechat::class);
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
